package shopping;

/**
 *
 * @author 29284
 * @since 2024/11/28 20:31
 */
public class Product {
    //商品属性
   private String productname;
   private double productprice;
   private String producttype;
   private int productnum;
   //构造方法
    //无参
    public Product() {
    }
    //有参
    public Product(String productname, double productprice, String producttype, int productnum) {
        this.productname = productname;
        this.productprice = productprice;
        this.producttype = producttype;
        this.productnum = productnum;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public double getProductprice() {
        return productprice;
    }

    public void setProductprice(double productprice) {
        this.productprice = productprice;
    }

    public String getProducttype() {
        return producttype;
    }

    public void setProducttype(String productdescription) {
        this.producttype = productdescription;
    }

    public int getProductnum() {
        return productnum;
    }

    public void setProductnum(int productnum) {
        this.productnum = productnum;
    }
}
